package com.mmy.fta.coldtruck.server.repository;

import com.mmy.fta.coldtruck.server.entity.ColdTruckOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ColdTruckOrderEntityMapper {
    int insert(ColdTruckOrderEntity record);

    int insertSelective(ColdTruckOrderEntity record);

    ColdTruckOrderEntity selectByPrimaryKey(Long id);

    ColdTruckOrderEntity selectByCargoId(String cargoId);

    int updateByPrimaryKeySelective(ColdTruckOrderEntity record);

    int updateByPrimaryKey(ColdTruckOrderEntity record);

    int updateColdCargoByCargoId(@Param("cargoId") String cargoId,
                                 @Param("truckNo") String truckNo,
                                 @Param("driver") String driver,
                                 @Param("orderId")String orderId);
}